package com.lcj.eduService.client;

import com.lcj.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author：LCJ
 * @Description：
 * @Date：Create in 19:06 2021/3/20 0020
 */
@Component
@FeignClient(name="service-vod",fallback = VodFeignClient.class)
public interface VodClient {

    //定义调用方法路径
    //根据视频id删除阿里云中数据
    @DeleteMapping("/eduvod/video/removeVideo/{id}")
    public R removeVideo(@PathVariable("id") String id);

    @DeleteMapping("/eduvod/video/delete-batch")
    public R deleteBatch(@RequestParam("videoList") List<String> videoList);

}